package com.frank.stock4j.tusharepro.entity;

import lombok.Data;
import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDate;
import com.frank.stock4j.tusharepro.bean.UsTradecalBean;

/**
* 描述：获取美股交易日历信息
* @author: codesmith
**/
@Data
@Entity
@Table(name = "adj_factor")
@IdClass(UsTradecalEntity.PrimaryKey.class)
public class UsTradecalEntity implements UsTradecalBean {
    @Data public static class PrimaryKey implements Serializable {
        private LocalDate calDate;
    }


    @Id
    @Column(name = "cal_date") protected LocalDate calDate;    //日历日期

    @Column(name = "is_open") protected Integer isOpen;    //是否交易 &#39;0&#39;休市 &#39;1&#39;交易

    @Column(name = "pretrade_date") protected LocalDate pretradeDate;    //上一个交易日
}